@font-face {
    font-family: 'iconfont';
    src: url('../fonts/iconfont.woff2?t=1622194052532') format('woff2'),
        url('../fonts/iconfont.woff?t=1622194052532') format('woff'),
        url('../fonts/iconfont.ttf?t=1622194052532') format('truetype');
}

body {
    max-width: 540px;
    min-width: 320px;
    font: normal 16px/1.5 PingFangSC-regular, Tahoma, Lucida Grande, Verdana, Microsoft Yahei, STXihei, hei;
    color: #000;
    margin: 0 auto;
    background-color: #f4f4f4;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

p,
h2,
ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    text-decoration: none;
    color: #222;
}

img {
    vertical-align: middle;
}

.header {
    display: flex;
    position: fixed;
    top: 0;
    left: 50%;
    width: 100%;
    height: 44px;
    max-width: 540px;
    min-width: 320px;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    /* background-color: skyblue; */
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.search {
    position: relative;
    flex: 1;
    height: 26px;
    line-height: 24px;
    border: 1px solid #ccc;
    margin: 7px 10px 0;
    border-radius: 15px;
    padding-left: 20px;
    font-size: 14px;
    color: #ccc;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
}

.search::before {
    position: absolute;
    top: 5px;
    left: 5px;
    content: "";
    width: 13px;
    height: 13px;
    background: url(../img/sprite.png) no-repeat -60px -279px;
    background-size: 104px auto;
}

.user {
    width: 44px;
    height: 44px;
    /* background-color: purple; */
    text-align: center;
    font-size: 12px;
    color: #1293d7;
    letter-spacing: 2px;
}

.user::before {
    content: "";
    display: block;
    width: 23px;
    height: 23px;
    background: url(../img/sprite.png) no-repeat -60px -194px;
    background-size: 104px 328px;
    margin: 2px auto -2px;
}

/* 焦点图 */
.focus {
    margin-top: 44px;
}

.focus li a {
    display: block;
    width: 100%;
}

img {
    width: 100%;
}

/* local-nav图 */
.local-nav {
    display: flex;
    height: 64px;
    border-radius: 10px;
    margin: 5px 4px;
    background-color: #fff;
}

.local-nav li {
    flex: 1;
}

.local-nav li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.local-nav li a span[class^=local-nav-icon] {
    height: 32px;
    width: 32px;
    background: url(../img/localnav_bg.png) no-repeat 0 0;
    background-size: 32px auto;
    margin-top: 2px;
}

.local-nav li:nth-child(2) a .local-nav-icon-icon2 {
    background-position: 0 -32px;
}

.local-nav li:nth-child(3) a .local-nav-icon-icon3 {
    background-position: 0 -64px;
}

.local-nav li:nth-child(4) a .local-nav-icon-icon4 {
    background-position: 0 -96px;
}

.local-nav li:nth-child(5) a .local-nav-icon-icon5 {
    background-position: 0 -128px;
}

/* nav区域 */
nav {
    border-radius: 8px;
    margin: 0 3px 4px;
    overflow: hidden;
    background-color: pink;
}

nav .nav-common {
    display: flex;
    width: 100%;
    height: 88px;
    background: -webkit-linear-gradient(top left, #fa6954, #ff9c49);
}

nav .nav-common:nth-child(2) {
    background: -webkit-linear-gradient(top left, #489ee5, #4ab4f0);
    margin: 3px 0;
}

nav .nav-common:nth-child(3) {
    background: -webkit-linear-gradient(top left, #4ac690, #64da4e);
}

.nav-item {
    display: flex;
    flex-direction: column;
    flex: 1;
    /* background-color: red; */
}

.nav-common .nav-item:nth-child(-n+2) {
    border-right: 1px solid #fff;
    /* margin-right: 1px; */
}

.nav-item a {
    flex: 1;
    line-height: 44px;
    text-align: center;
    color: #fff;
    text-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
}

.nav-item a:nth-child(2) {
    border-top: 1px solid #fff;
}

.nav-item .nav-bg {
    background: url(../img/hotel.png) no-repeat bottom center/121px auto;
}

/* subnav */
.subnav-entry {
    padding: 4px;
    margin: 0 4px;
    display: flex;
    flex-wrap: wrap;
    background-color: #fff;
    border-radius: 8px;
}

.subnav-entry li {
    flex: 20%;
    /* height: 44px; */
}

.subnav-entry a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.subnav-entry-icon {
    width: 28px;
    height: 28px;
    background: url(../img/subnav-bg.png) no-repeat;
    background-size: 28px auto;
}

.subnav-entry li:nth-child(2) a .subnav-entry-icon {
    width: 28px;
    height: 28px;
    background: url(../img/subnav-bg.png) no-repeat 0 -30px;
    background-size: 28px auto;
}

/* sale */
.sale {
    border-top: 1px solid #ccc;
    margin: 4px;
}

.sale-hd {
    height: 44px;
    position: relative;
    border-bottom: 1px solid #ccc;
}

.sale-hd h2 {
    overflow: hidden;
    text-indent: -999px;
}

.sale-hd h2::before {
    content: "";
    position: absolute;
    width: 75px;
    top: 10px;
    left: 0px;
    height: 20px;
    background: url(../img/hot.png) no-repeat 0 -18px;
    background-size: 75px auto;
}

.sale-hd a {
    position: absolute;
    right: 5px;
    top: 8px;
    background: -webkit-linear-gradient(left, #ff506c, #ff6bc6);
    border-radius: 15px;
    padding: 3px 20px 3px 10px;
    color: #fff;
}

.sale .sale-hd a::after {
    position: absolute;
    content: "";
    top: 10px;
    right: 9px;
    width: 7px;
    height: 7px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
}

/* sale-bd部分 */
.sale-bd .row {
    display: flex;
}

.sale-bd .row a {
    flex: 1;
}

.sale-bd .row a {
    border-bottom: 1px solid #eee;
}

.row a :nth-child(1) {
    border-right: 1px solid #eee;
}

.sale-bd .row a img {
    width: 100%;
}

/* footer区域 */
.footer{
    margin-bottom: 80px;
}
.footer-hd {
    height: 30px;
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.footer-hd a {
    flex: 1;
    display: flex;
    justify-content: center;

}

.footer a span {
    position: relative;
    border: 1px solid #c7c7c7;
    padding: 5px 20px;
}

.footer a:nth-child(3) span::before,
.footer a:nth-child(2) span::before,
.footer a:nth-child(1) span::before {
    content: "\e648";
    font-family: 'iconfont';
    position: absolute;
    top: 5px;
    left: 2px;
}

.footer a:nth-child(2) span:before {
    content: "\e612";
    font-family: 'iconfont';
}

.footer a:nth-child(3) span:before {
    content: "\e60f";
    font-family: 'iconfont';
}

.footer a:nth-child(3) span::after {
    content: "";
    position: absolute;
    top: 15px;
    right: 5px;
    width: 0;
    height: 0;
    border: 5px solid transparent;
    border-top-color: #646464;
}

.footer-bd {
    text-align: center;
    margin-top: 13px;
    color: #666
}

.footer-bd a:nth-child(1) {
    padding-right: 24px;
    border-right: 1px solid #ccc;
    color: #666
}

.footer-bd a:nth-child(2) {
    padding-left: 24px;
    color: #666
}

.footer p {
    font-size: 10px;
    margin-top: 16px;
}

/* tabbar */
.tabbar {
    display: flex;
    position: fixed;
    max-width: 540px;
    min-width: 320px;
    width: 100%;
    bottom: 0;
    height: 49px;
    background-color: #fff;
}

.tabbar a {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.tabbar span {
    width: 32px;
    height: 32px;
    background: url(../img/tabbar.png) no-repeat 0px -100px;
    background-size: 32px auto;
}

.tabbar a:nth-child(2) span {
    background-position: 0 0;
}

.tabbar a:nth-child(3) span {
    background-position: 0 -162px;
}

.tabbar a:nth-child(4) span {
    background-position: 0 -193px;
}